<template>
  <div id="page-to-print">
    <g-layout :isShowLeftSider="false">
      <template #content>
        <div class="content-container">
          <a-button type="primary" @click="handlePrintClick">打印</a-button>
          <h1>其他配置参考 npm address: https://www.npmjs.com/package/print-js</h1>
          <a-table :dataSource="dataSource" :columns="columns" :pagination="false"></a-table>
        </div>
      </template>
    </g-layout>
  </div>
</template>

<script lang="ts">
  import { defineComponent } from 'vue';
  import IndexMixin from './index-mixin';
  export default defineComponent({
    name: 'pageToPrint',
    mixins: [IndexMixin],
  });
</script>

<style lang="less" scoped>
  .content-container {
    padding: 16px;
  }
</style>
